package demo2;

import java.util.Arrays;
import java.util.Scanner;

public class Loin {
    private String name="111";
    private int code=123;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public Loin(String name, int code) {
        this.name = name;
        this.code = code;
    }
    @Override
    public boolean equals(Object obj) {
        //return super.equals(obj);
        if(this==obj){
            return true;
        }
        return false;
    }
}
